package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class ActivitytypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ActivitytypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Time> timeList = new ArrayList<java.sql.Time>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                timeList.add(new java.sql.Time(iter.next().getTime()));
            }
            addCriterion(condition, timeList, property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value1.getTime()), new java.sql.Time(value2.getTime()), property);
        }

        public Criteria andAtnoIsNull() {
            addCriterion("atno is null");
            return (Criteria) this;
        }

        public Criteria andAtnoIsNotNull() {
            addCriterion("atno is not null");
            return (Criteria) this;
        }

        public Criteria andAtnoEqualTo(String value) {
            addCriterion("atno =", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoNotEqualTo(String value) {
            addCriterion("atno <>", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoGreaterThan(String value) {
            addCriterion("atno >", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoGreaterThanOrEqualTo(String value) {
            addCriterion("atno >=", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoLessThan(String value) {
            addCriterion("atno <", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoLessThanOrEqualTo(String value) {
            addCriterion("atno <=", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoLike(String value) {
            addCriterion("atno like", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoNotLike(String value) {
            addCriterion("atno not like", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoIn(List<String> values) {
            addCriterion("atno in", values, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoNotIn(List<String> values) {
            addCriterion("atno not in", values, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoBetween(String value1, String value2) {
            addCriterion("atno between", value1, value2, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoNotBetween(String value1, String value2) {
            addCriterion("atno not between", value1, value2, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnameIsNull() {
            addCriterion("atname is null");
            return (Criteria) this;
        }

        public Criteria andAtnameIsNotNull() {
            addCriterion("atname is not null");
            return (Criteria) this;
        }

        public Criteria andAtnameEqualTo(String value) {
            addCriterion("atname =", value, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameNotEqualTo(String value) {
            addCriterion("atname <>", value, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameGreaterThan(String value) {
            addCriterion("atname >", value, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameGreaterThanOrEqualTo(String value) {
            addCriterion("atname >=", value, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameLessThan(String value) {
            addCriterion("atname <", value, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameLessThanOrEqualTo(String value) {
            addCriterion("atname <=", value, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameLike(String value) {
            addCriterion("atname like", value, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameNotLike(String value) {
            addCriterion("atname not like", value, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameIn(List<String> values) {
            addCriterion("atname in", values, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameNotIn(List<String> values) {
            addCriterion("atname not in", values, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameBetween(String value1, String value2) {
            addCriterion("atname between", value1, value2, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameNotBetween(String value1, String value2) {
            addCriterion("atname not between", value1, value2, "atname");
            return (Criteria) this;
        }

        public Criteria andAtstateIsNull() {
            addCriterion("atState is null");
            return (Criteria) this;
        }

        public Criteria andAtstateIsNotNull() {
            addCriterion("atState is not null");
            return (Criteria) this;
        }

        public Criteria andAtstateEqualTo(String value) {
            addCriterion("atState =", value, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateNotEqualTo(String value) {
            addCriterion("atState <>", value, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateGreaterThan(String value) {
            addCriterion("atState >", value, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateGreaterThanOrEqualTo(String value) {
            addCriterion("atState >=", value, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateLessThan(String value) {
            addCriterion("atState <", value, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateLessThanOrEqualTo(String value) {
            addCriterion("atState <=", value, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateLike(String value) {
            addCriterion("atState like", value, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateNotLike(String value) {
            addCriterion("atState not like", value, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateIn(List<String> values) {
            addCriterion("atState in", values, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateNotIn(List<String> values) {
            addCriterion("atState not in", values, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateBetween(String value1, String value2) {
            addCriterion("atState between", value1, value2, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateNotBetween(String value1, String value2) {
            addCriterion("atState not between", value1, value2, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtdescribeIsNull() {
            addCriterion("atDescribe is null");
            return (Criteria) this;
        }

        public Criteria andAtdescribeIsNotNull() {
            addCriterion("atDescribe is not null");
            return (Criteria) this;
        }

        public Criteria andAtdescribeEqualTo(String value) {
            addCriterion("atDescribe =", value, "atdescribe");
            return (Criteria) this;
        }

        public Criteria andAtdescribeNotEqualTo(String value) {
            addCriterion("atDescribe <>", value, "atdescribe");
            return (Criteria) this;
        }

        public Criteria andAtdescribeGreaterThan(String value) {
            addCriterion("atDescribe >", value, "atdescribe");
            return (Criteria) this;
        }

        public Criteria andAtdescribeGreaterThanOrEqualTo(String value) {
            addCriterion("atDescribe >=", value, "atdescribe");
            return (Criteria) this;
        }

        public Criteria andAtdescribeLessThan(String value) {
            addCriterion("atDescribe <", value, "atdescribe");
            return (Criteria) this;
        }

        public Criteria andAtdescribeLessThanOrEqualTo(String value) {
            addCriterion("atDescribe <=", value, "atdescribe");
            return (Criteria) this;
        }

        public Criteria andAtdescribeLike(String value) {
            addCriterion("atDescribe like", value, "atdescribe");
            return (Criteria) this;
        }

        public Criteria andAtdescribeNotLike(String value) {
            addCriterion("atDescribe not like", value, "atdescribe");
            return (Criteria) this;
        }

        public Criteria andAtdescribeIn(List<String> values) {
            addCriterion("atDescribe in", values, "atdescribe");
            return (Criteria) this;
        }

        public Criteria andAtdescribeNotIn(List<String> values) {
            addCriterion("atDescribe not in", values, "atdescribe");
            return (Criteria) this;
        }

        public Criteria andAtdescribeBetween(String value1, String value2) {
            addCriterion("atDescribe between", value1, value2, "atdescribe");
            return (Criteria) this;
        }

        public Criteria andAtdescribeNotBetween(String value1, String value2) {
            addCriterion("atDescribe not between", value1, value2, "atdescribe");
            return (Criteria) this;
        }

        public Criteria andAtbegtimeIsNull() {
            addCriterion("atbegTime is null");
            return (Criteria) this;
        }

        public Criteria andAtbegtimeIsNotNull() {
            addCriterion("atbegTime is not null");
            return (Criteria) this;
        }

        public Criteria andAtbegtimeEqualTo(Date value) {
            addCriterionForJDBCTime("atbegTime =", value, "atbegtime");
            return (Criteria) this;
        }

        public Criteria andAtbegtimeNotEqualTo(Date value) {
            addCriterionForJDBCTime("atbegTime <>", value, "atbegtime");
            return (Criteria) this;
        }

        public Criteria andAtbegtimeGreaterThan(Date value) {
            addCriterionForJDBCTime("atbegTime >", value, "atbegtime");
            return (Criteria) this;
        }

        public Criteria andAtbegtimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("atbegTime >=", value, "atbegtime");
            return (Criteria) this;
        }

        public Criteria andAtbegtimeLessThan(Date value) {
            addCriterionForJDBCTime("atbegTime <", value, "atbegtime");
            return (Criteria) this;
        }

        public Criteria andAtbegtimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("atbegTime <=", value, "atbegtime");
            return (Criteria) this;
        }

        public Criteria andAtbegtimeIn(List<Date> values) {
            addCriterionForJDBCTime("atbegTime in", values, "atbegtime");
            return (Criteria) this;
        }

        public Criteria andAtbegtimeNotIn(List<Date> values) {
            addCriterionForJDBCTime("atbegTime not in", values, "atbegtime");
            return (Criteria) this;
        }

        public Criteria andAtbegtimeBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("atbegTime between", value1, value2, "atbegtime");
            return (Criteria) this;
        }

        public Criteria andAtbegtimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("atbegTime not between", value1, value2, "atbegtime");
            return (Criteria) this;
        }

        public Criteria andAtendtimeIsNull() {
            addCriterion("atendTime is null");
            return (Criteria) this;
        }

        public Criteria andAtendtimeIsNotNull() {
            addCriterion("atendTime is not null");
            return (Criteria) this;
        }

        public Criteria andAtendtimeEqualTo(Date value) {
            addCriterionForJDBCTime("atendTime =", value, "atendtime");
            return (Criteria) this;
        }

        public Criteria andAtendtimeNotEqualTo(Date value) {
            addCriterionForJDBCTime("atendTime <>", value, "atendtime");
            return (Criteria) this;
        }

        public Criteria andAtendtimeGreaterThan(Date value) {
            addCriterionForJDBCTime("atendTime >", value, "atendtime");
            return (Criteria) this;
        }

        public Criteria andAtendtimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("atendTime >=", value, "atendtime");
            return (Criteria) this;
        }

        public Criteria andAtendtimeLessThan(Date value) {
            addCriterionForJDBCTime("atendTime <", value, "atendtime");
            return (Criteria) this;
        }

        public Criteria andAtendtimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("atendTime <=", value, "atendtime");
            return (Criteria) this;
        }

        public Criteria andAtendtimeIn(List<Date> values) {
            addCriterionForJDBCTime("atendTime in", values, "atendtime");
            return (Criteria) this;
        }

        public Criteria andAtendtimeNotIn(List<Date> values) {
            addCriterionForJDBCTime("atendTime not in", values, "atendtime");
            return (Criteria) this;
        }

        public Criteria andAtendtimeBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("atendTime between", value1, value2, "atendtime");
            return (Criteria) this;
        }

        public Criteria andAtendtimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("atendTime not between", value1, value2, "atendtime");
            return (Criteria) this;
        }

        public Criteria andAtaddrIsNull() {
            addCriterion("ataddr is null");
            return (Criteria) this;
        }

        public Criteria andAtaddrIsNotNull() {
            addCriterion("ataddr is not null");
            return (Criteria) this;
        }

        public Criteria andAtaddrEqualTo(String value) {
            addCriterion("ataddr =", value, "ataddr");
            return (Criteria) this;
        }

        public Criteria andAtaddrNotEqualTo(String value) {
            addCriterion("ataddr <>", value, "ataddr");
            return (Criteria) this;
        }

        public Criteria andAtaddrGreaterThan(String value) {
            addCriterion("ataddr >", value, "ataddr");
            return (Criteria) this;
        }

        public Criteria andAtaddrGreaterThanOrEqualTo(String value) {
            addCriterion("ataddr >=", value, "ataddr");
            return (Criteria) this;
        }

        public Criteria andAtaddrLessThan(String value) {
            addCriterion("ataddr <", value, "ataddr");
            return (Criteria) this;
        }

        public Criteria andAtaddrLessThanOrEqualTo(String value) {
            addCriterion("ataddr <=", value, "ataddr");
            return (Criteria) this;
        }

        public Criteria andAtaddrLike(String value) {
            addCriterion("ataddr like", value, "ataddr");
            return (Criteria) this;
        }

        public Criteria andAtaddrNotLike(String value) {
            addCriterion("ataddr not like", value, "ataddr");
            return (Criteria) this;
        }

        public Criteria andAtaddrIn(List<String> values) {
            addCriterion("ataddr in", values, "ataddr");
            return (Criteria) this;
        }

        public Criteria andAtaddrNotIn(List<String> values) {
            addCriterion("ataddr not in", values, "ataddr");
            return (Criteria) this;
        }

        public Criteria andAtaddrBetween(String value1, String value2) {
            addCriterion("ataddr between", value1, value2, "ataddr");
            return (Criteria) this;
        }

        public Criteria andAtaddrNotBetween(String value1, String value2) {
            addCriterion("ataddr not between", value1, value2, "ataddr");
            return (Criteria) this;
        }

        public Criteria andAtbegindateIsNull() {
            addCriterion("atbeginDate is null");
            return (Criteria) this;
        }

        public Criteria andAtbegindateIsNotNull() {
            addCriterion("atbeginDate is not null");
            return (Criteria) this;
        }

        public Criteria andAtbegindateEqualTo(Date value) {
            addCriterionForJDBCDate("atbeginDate =", value, "atbegindate");
            return (Criteria) this;
        }

        public Criteria andAtbegindateNotEqualTo(Date value) {
            addCriterionForJDBCDate("atbeginDate <>", value, "atbegindate");
            return (Criteria) this;
        }

        public Criteria andAtbegindateGreaterThan(Date value) {
            addCriterionForJDBCDate("atbeginDate >", value, "atbegindate");
            return (Criteria) this;
        }

        public Criteria andAtbegindateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("atbeginDate >=", value, "atbegindate");
            return (Criteria) this;
        }

        public Criteria andAtbegindateLessThan(Date value) {
            addCriterionForJDBCDate("atbeginDate <", value, "atbegindate");
            return (Criteria) this;
        }

        public Criteria andAtbegindateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("atbeginDate <=", value, "atbegindate");
            return (Criteria) this;
        }

        public Criteria andAtbegindateIn(List<Date> values) {
            addCriterionForJDBCDate("atbeginDate in", values, "atbegindate");
            return (Criteria) this;
        }

        public Criteria andAtbegindateNotIn(List<Date> values) {
            addCriterionForJDBCDate("atbeginDate not in", values, "atbegindate");
            return (Criteria) this;
        }

        public Criteria andAtbegindateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("atbeginDate between", value1, value2, "atbegindate");
            return (Criteria) this;
        }

        public Criteria andAtbegindateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("atbeginDate not between", value1, value2, "atbegindate");
            return (Criteria) this;
        }

        public Criteria andAtenddateIsNull() {
            addCriterion("atendDate is null");
            return (Criteria) this;
        }

        public Criteria andAtenddateIsNotNull() {
            addCriterion("atendDate is not null");
            return (Criteria) this;
        }

        public Criteria andAtenddateEqualTo(Date value) {
            addCriterionForJDBCDate("atendDate =", value, "atenddate");
            return (Criteria) this;
        }

        public Criteria andAtenddateNotEqualTo(Date value) {
            addCriterionForJDBCDate("atendDate <>", value, "atenddate");
            return (Criteria) this;
        }

        public Criteria andAtenddateGreaterThan(Date value) {
            addCriterionForJDBCDate("atendDate >", value, "atenddate");
            return (Criteria) this;
        }

        public Criteria andAtenddateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("atendDate >=", value, "atenddate");
            return (Criteria) this;
        }

        public Criteria andAtenddateLessThan(Date value) {
            addCriterionForJDBCDate("atendDate <", value, "atenddate");
            return (Criteria) this;
        }

        public Criteria andAtenddateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("atendDate <=", value, "atenddate");
            return (Criteria) this;
        }

        public Criteria andAtenddateIn(List<Date> values) {
            addCriterionForJDBCDate("atendDate in", values, "atenddate");
            return (Criteria) this;
        }

        public Criteria andAtenddateNotIn(List<Date> values) {
            addCriterionForJDBCDate("atendDate not in", values, "atenddate");
            return (Criteria) this;
        }

        public Criteria andAtenddateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("atendDate between", value1, value2, "atenddate");
            return (Criteria) this;
        }

        public Criteria andAtenddateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("atendDate not between", value1, value2, "atenddate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}